package com.yootk.processor;

import com.yootk.bean.vo.bean.MessageChannel;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanFactoryPostProcessor;
import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
import org.springframework.stereotype.Component;

@Component
public class ChannelBeanFactoryPostProcessor implements BeanFactoryPostProcessor {
    private static final Logger LOGGER = LoggerFactory.getLogger(ChannelBeanFactoryPostProcessor.class) ;
    @Override
    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
//        MessageChannel channel = beanFactory.getBean(MessageChannel.class) ;
//        LOGGER.info("【默认的通道消息】host={},token={}",channel.getHost(),channel.getToken());
//        channel.setHost("张三");
//        channel.setToken("李四");

    }
}
